package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_zan;

import cn.com.api.mapper.ApiU_zanMapper;

import cn.com.api.service.ApiU_zanService;

/**
 * 
 **/
@Service
public class U_zanServiceImplBase {
	@Autowired
	private ApiU_zanMapper apiU_zanMapper;
    
    // 根据id获取
	public ApiU_zan findU_zanById(Integer id){
		ApiU_zan u_zan = apiU_zanMapper.findU_zanById( id );
		return u_zan;
	}
    
    //查看数据集
	public List<ApiU_zan> findU_zans(){
        List<ApiU_zan> u_zans = apiU_zanMapper.findU_zans();
		return u_zans;
    }
    
	// 添加
	public int insertU_zan(ApiU_zan u_zan){
		int ret_I= apiU_zanMapper.insertU_zan(u_zan);
		return ret_I;
	}

	// 修改
	public int updateU_zan(ApiU_zan u_zan){
		int ret_I= apiU_zanMapper.updateU_zan(u_zan);
		return ret_I;
	}
	
    // 删除
	public int deleteU_zan(Integer id){
		int ret_I= apiU_zanMapper.deleteU_zan( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


